package com.lxw.multidb.modules.sql.service;

import com.lxw.multidb.controller.dto.DbConnectionAdd;
import com.lxw.multidb.modules.sql.entity.DbConnection;

import java.util.List;
import java.util.Optional;

/**
 * DbConnectionService
 *
 * @author lxw
 * @version V1.0
 * @date 2025/10/30 16:44
 */
public interface DbConnectionService {
    void add(DbConnectionAdd add);

    List<DbConnection> list();

    Optional<DbConnection> getById(Integer id);

    void deleteById(Integer id);
}
